package com.mingshashan.building.easy.core.config;

import com.mingshashan.building.easy.core.common.SpringApplicationContextHolder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * CommonAutoConfig
 *
 * @author jasonxu
 */
@Configuration
public class CommonConfig {

    @Bean
    @Order(value = Ordered.HIGHEST_PRECEDENCE)
    public SpringApplicationContextHolder springApplicationContextHolder() {
        return new SpringApplicationContextHolder();
    }
}
